package com.xydtech.ecard.custgroup.service.impl;

import com.xydtech.ecard.custgroup.domain.EcardApiCustomerGroupInfo;
import com.xydtech.ecard.custgroup.mapper.EcardApiCustomerGroupInfoMapper;
import com.xydtech.ecard.custgroup.service.IEcardApiCustomerGroupInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 行业客户配置Service业务层处理
 *
 * @author yuzhiguo
 * @date 2024-11-27 下午3:56
 */
@Service
public class EcardApiCustomerGroupInfoServiceImpl implements IEcardApiCustomerGroupInfoService {

    @Autowired
    private EcardApiCustomerGroupInfoMapper ecardCustomerGroupInfoMapper;

    /**
     * 条件查询登录人法人机构下行业客群列表接口
     * @param ecardCustomerGroupInfo
     * @return
     */
    @Override
    public List<EcardApiCustomerGroupInfo> getCustomerGroupList(EcardApiCustomerGroupInfo ecardCustomerGroupInfo) {
        return ecardCustomerGroupInfoMapper.getCustomerGroupList(ecardCustomerGroupInfo);
    }

    /**
     * 根据id查询行业客群信息
     * @param id
     * @return
     */
    @Override
    public EcardApiCustomerGroupInfo selectEcardCustomerGroupInfoById(Long id) {
        return ecardCustomerGroupInfoMapper.selectEcardCustomerGroupInfoById(id);
    }
}
